/*
 * @Author: admin@attacker.club
 * @Date: 2022-10-10 23:47:26
 * @LastEditTime: 2022-11-10 09:43:09
 * @Description: 
 */
import { createApp } from 'vue'
import App from './App.vue'
// 导入elemnt plus
import ElementPlus from 'element-plus'
// 引入默认主题
import 'element-plus/dist/index.css'
// 引入element plus的所有图标
import * as ELIcons from '@element-plus/icons-vue'
// 引入router
import router from './router'
import axios from '@/utils/request'  // 导入Axios

// 创建vue实例
const app = createApp(App)
// 将图标注册成全局组件
for (let iconName in ELIcons) {
    app.component(iconName, ELIcons[iconName])
}

// 全局引入axios
app.config.globalProperties.$axios = axios 

// 引入element plus
app.use(ElementPlus)
// 引入路由
app.use(router)
// 挂载
app.mount('#app')